//
//  ViewController.m
//  欢乐美食
//
//  Created by 遇水 on 15/6/24.
//  Copyright (c) 2015年 遇水. All rights reserved.
//

#import "ViewController.h"
#import "MSDealTool.h"



@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    
    
    [[NSUserDefaults standardUserDefaults]setValue:@"北京" forKey:@"city"];
    [[NSUserDefaults standardUserDefaults]synchronize];
    
    //测试搜索搜索团购
//    + (void)findDeals:(MSFindDealsParam *)param success:(void (^)(MSFindDealsResult *result))success failure:(void (^)(NSError *error))failure;
//    MSFindDealsParam *param = [[MSFindDealsParam alloc]init];
//    param.city = @"上海";
//    param.keyword = @"日式料理";
//    param.limit = @(1);
//    
//    [MSDealTool findDeals:param success:^(MSFindDealsResult *result) {
//        
//    } failure:^(NSError *error) {
//        NSLog(@"----%@",error.localizedDescription);
//    }];

    
    [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)lastObject]stringByAppendingPathComponent:@"history.data"];
    
    
}


@end
